﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FOSystem.CultureHelper;
namespace FO.Controllers
{
    public class UpLoadController : CultureController
    {
        //
        // GET: /UpLoad/

        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Upload(string qqFile)
        {
            // The upload action will be called by the client control
            // for each file that was selected by the user for upload
            var path = Server.MapPath("~/Content/Upload/Images");
            var file = Path.Combine(path, qqFile);
            using (var output = System.IO.File.Create(file))
            {
                Request.InputStream.CopyTo(output);
            }
            return Json(new { success = true });
        }

    }
}
